FROM openjdk:8-jdk-alpine
VOLUME /tmp

RUN echo "Asia/Shanghai" > /etc/timezone

#captcher 字体包
RUN apk update && apk add --no-cache \
    fontconfig \
    ttf-dejavu

ADD /target/lanjixing.jar lanjixing.jar
# RUN bash -c 'touch /lanjixing.jar'
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /lanjixing.jar" ]